<?php
class TypePropriete{
	private $id;
	private $label;
	private $comment;

	function __construct($id) {

		if (is_int($id)){
			if($id >= 0){
				$this->id=$id;
			}else{
				throw new FieldFormatException($_SESSION['translator']->idVal);
			}
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
	public function getId(){
		return $this->id;
	}
	public function setLabel($label){

		$this->label = $label;

	}
	public function getLabel(){
		return $this->label;
	}
	public function setComment($comment){

		$this->comment = $comment;

	}
	public function getComment(){
		return $this->comment;
	}
}
?>